import { RouteRecordRaw } from 'vue-router'
const homeRoutes: RouteRecordRaw[] = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/home/Login.vue'),
    meta: { title: '登录' },
  },
  {
    path: '/personal',
    name: 'Personal',
    component: () => import('@/views/home/Personal.vue'),
    meta: { title: '个人中心' },
  },
  {
    path: '/home/config',
    name: 'SystemConfig',
    component: () => import('@/views/home/ConfigList.vue'),
    meta: { title: '系统配置' },
  },
  {
    path: '/home/module',
    name: 'ModuleList',
    component: () => import('@/views/home/ModuleList.vue'),
    meta: { title: '功能模块' },
  },
  {
    path: '/home/dataauth',
    name: 'DataAuthList',
    component: () => import('@/views/home/DataAuthList.vue'),
    meta: { title: '模块配置' },
  },
  {
    path: '/home/rule',
    name: 'RuleList',
    component: () => import('@/views/home/RuleList.vue'),
    meta: { title: '功能节点' },
  },
  {
    path: '/home/role',
    name: 'RoleList',
    component: () => import('@/views/home/RoleList.vue'),
    meta: { title: '角色权限' },
  },
  {
    path: '/home/log',
    name: 'LogList',
    component: () => import('@/views/home/LogList.vue'),
    meta: { title: '操作日志' },
  },
  {
    path: '/home/files',
    name: 'FilesList',
    component: () => import('@/views/home/FilesList.vue'),
    meta: { title: '附件管理' },
  },
  {
    path: '/home/database/database',
    name: 'DatabaseList',
    component: () => import('@/views/home/DatabaseList.vue'),
    meta: { title: '备份数据' },
  },
  {
    path: '/home/database/backuplist',
    name: 'DatabaseBackupList',
    component: () => import('@/views/home/DatabaseBackupList.vue'),
    meta: { title: '还原数据' },
  },
  {
    path: '/home/task',
    name: 'TaskList',
    component: () => import('@/views/home/TaskList.vue'),
    meta: { title: '定时任务' },
  },
  {
    path: '/home/template',
    name: 'TemplateList',
    component: () => import('@/views/home/TemplateList.vue'),
    meta: { title: '消息模板' },
  },
  {
    path: '/home/cate/enterprise',
    name: 'CateList',
    component: () => import('@/views/home/CateList.vue'),
    meta: { title: '企业主体' },
  },
  {
    path: '/home/area',
    name: 'AreaList',
    component: () => import('@/views/home/AreaList.vue'),
    meta: { title: '全国省市' },
  },
]

export default homeRoutes
